import 'package:love_app/common/su_dio.dart';
import 'package:love_app/config/path_url.dart';
import 'package:love_app/model/response_model.dart';
import 'package:love_app/service/base_api.dart';

// 点赞接口
class DynamicAgreeApi extends BaseApi{

  // 点赞接口实现方法
  Future<bool> setAgree(String token ,int itemID)async{
    Map header = {
      "X-Auth-Token": token,
    };

    String path = PathUrl.dynamicAgree + itemID.toString();
    ResponseModel responseModel = await SuDio().getRequest(path, headersMap: header);
    return isSuccess(responseModel.data);
  }
}